package com.ruoyi.sl.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 班组对象 sl_team
 *
 * @author admin
 * @date 2024-06-05
 */
public class SlTeam extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 班组ID */
    private Long teamId;

    /** 班组编码 */
    @Excel(name = "班组编码")
    private String teamCode;

    /** 班组名称 */
    @Excel(name = "班组名称")
    private String teamName;

    /** 班组类型 */
    @Excel(name = "班组类型")
    private String teamType;

    /** 负责人名称 */
    @Excel(name = "负责人名称")
    private String leaderUser;

    /** 负责人昵称 */
    @Excel(name = "负责人昵称")
    private String leaderNick;

    /** 预留字段1 */
    @Excel(name = "预留字段1")
    private String attr1;

    /** 预留字段2 */
    @Excel(name = "预留字段2")
    private String attr2;

    /** 预留字段3 */
    @Excel(name = "预留字段3")
    private Long attr3;

    /** 预留字段4 */
    @Excel(name = "预留字段4")
    private Long attr4;

    /** 模块 */
    @Excel(name = "模块")
    private Long moduleId;

    /** 车间 */
    @Excel(name = "车间")
    private Long workshopId;

    /** 大工序 */
    @Excel(name = "大工序")
    private Long gprocessId;

    @Excel(name = "所属车间", targetAttr = "workshopName", type = Excel.Type.EXPORT)
    private SlWorkshop workshop;

    @Excel(name = "所属模块", targetAttr = "moduleName", type = Excel.Type.EXPORT)
    private SlModule module;

    @Excel(name = "所属大工序", targetAttr = "gprocessName", type = Excel.Type.EXPORT)
    private SlGprocess gprocess;

    public void setTeamId(Long teamId)
    {
        this.teamId = teamId;
    }

    public Long getTeamId()
    {
        return teamId;
    }
    public void setTeamCode(String teamCode)
    {
        this.teamCode = teamCode;
    }

    public String getTeamCode()
    {
        return teamCode;
    }
    public void setTeamName(String teamName)
    {
        this.teamName = teamName;
    }

    public String getTeamName()
    {
        return teamName;
    }
    public void setTeamType(String teamType)
    {
        this.teamType = teamType;
    }

    public String getTeamType()
    {
        return teamType;
    }
    public void setLeaderUser(String leaderUser)
    {
        this.leaderUser = leaderUser;
    }

    public String getLeaderUser()
    {
        return leaderUser;
    }
    public void setLeaderNick(String leaderNick)
    {
        this.leaderNick = leaderNick;
    }

    public String getLeaderNick()
    {
        return leaderNick;
    }
    public void setAttr1(String attr1)
    {
        this.attr1 = attr1;
    }

    public String getAttr1()
    {
        return attr1;
    }
    public void setAttr2(String attr2)
    {
        this.attr2 = attr2;
    }

    public String getAttr2()
    {
        return attr2;
    }
    public void setAttr3(Long attr3)
    {
        this.attr3 = attr3;
    }

    public Long getAttr3()
    {
        return attr3;
    }
    public void setAttr4(Long attr4)
    {
        this.attr4 = attr4;
    }

    public Long getAttr4()
    {
        return attr4;
    }

    public Long getModuleId() {
        return moduleId;
    }

    public void setModuleId(Long moduleId) {
        this.moduleId = moduleId;
    }

    public Long getWorkshopId() {
        return workshopId;
    }

    public void setWorkshopId(Long workshopId) {
        this.workshopId = workshopId;
    }

    public Long getGprocessId() {
        return gprocessId;
    }

    public void setGprocessId(Long gprocessId) {
        this.gprocessId = gprocessId;
    }

    public SlWorkshop getWorkshop() {
        return workshop;
    }

    public void setWorkshop(SlWorkshop workshop) {
        this.workshop = workshop;
    }

    public SlModule getModule() {
        return module;
    }

    public void setModule(SlModule module) {
        this.module = module;
    }

    public SlGprocess getGprocess() {
        return gprocess;
    }

    public void setGprocess(SlGprocess gprocess) {
        this.gprocess = gprocess;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("teamId", getTeamId())
                .append("teamCode", getTeamCode())
                .append("teamName", getTeamName())
                .append("teamType", getTeamType())
                .append("leaderUser", getLeaderUser())
                .append("leaderNick", getLeaderNick())
                .append("remark", getRemark())
                .append("attr1", getAttr1())
                .append("attr2", getAttr2())
                .append("attr3", getAttr3())
                .append("attr4", getAttr4())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("moduleId", getModuleId())
                .append("workshopId", getWorkshopId())
                .append("gprocessId", getGprocessId())
                .append("workshop", getWorkshop())
                .append("module", getModule())
                .append("gprocess", getGprocess())
                .toString();
    }
}
